<div ng-controller="CustomsorderCtrl" ng-init="configlistAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/customsorder/list">{{'外部订单'| translate}}</a></li>
        <li>{{'配置'| translate}}</li>
        <li class="active">
            {{"List"|translate}}
        </li>

        <span class="sui-form sui-form pull-right">
            <a class="sui-btn btn-primary" href="#/customsorder/configadd">+增加</a>
        </span>
    </ul>
    <div class="sui-row-fluid">
        <table class="sui-table table-bordered">
            <thead>
                <tr>
                    <th>{{'id'|translate}}</th>
                    <th>{{'类型'|translate}}</th>
                    <th>{{'时间'|translate}}</th>
                    <th>{{'operation'|translate}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="(key, list) in configList">
                    <td style="width: 160px;">
                        {{list.customs_config_id}}
                    </td>
                    <td>
                        <customs-order-type ng-model="list.type" stype="1"></customs-order-type>
                    </td>
                    <td>{{list.time | ddtt}}</td>
                    <td style="width: 160px;">
                        <a class="sui-btn btn-primary" href="#/customsorder/configadd?xid={{list.customs_config_id}}">{{'编辑'| translate}}</a>
                        <button ng-click="delConfig(list.customs_config_id)" class="sui-btn btn-warning">删除</button>
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- 分页start -->
        <pager page-no="{{pageNo}}" page-size="pageSize" total="ordersTotal" get-data="getOrderList(pageNo)"></pager>
    </div>
    <!-- 分页end -->
</div>